package com.gxp.system.service.impl;

import com.gxp.common.core.text.Convert;
import com.gxp.system.domain.ZknjProUser;
import com.gxp.system.mapper.ZknjProUserMapper;
import com.gxp.system.service.IZknjProUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户服务关联Service业务层处理
 * 
 * @author zh
 * @date 2024-07-18
 */
@Service
public class ZknjProUserServiceImpl implements IZknjProUserService 
{
    @Autowired
    private ZknjProUserMapper zknjProUserMapper;

    /**
     * 查询用户服务关联
     * 
     * @param peoId 用户服务关联主键
     * @return 用户服务关联
     */
    @Override
    public ZknjProUser selectZknjProUserByPeoId(Long peoId)
    {
        return zknjProUserMapper.selectZknjProUserByPeoId(peoId);
    }

    /**
     * 查询用户服务关联列表
     * 
     * @param zknjProUser 用户服务关联
     * @return 用户服务关联
     */
    @Override
    public List<ZknjProUser> selectZknjProUserList(ZknjProUser zknjProUser)
    {
        return zknjProUserMapper.selectZknjProUserList(zknjProUser);
    }

    /**
     * 新增用户服务关联
     * 
     * @param zknjProUser 用户服务关联
     * @return 结果
     */
    @Override
    public int insertZknjProUser(ZknjProUser zknjProUser)
    {
        return zknjProUserMapper.insertZknjProUser(zknjProUser);
    }

    /**
     * 修改用户服务关联
     * 
     * @param zknjProUser 用户服务关联
     * @return 结果
     */
    @Override
    public int updateZknjProUser(ZknjProUser zknjProUser)
    {
        return zknjProUserMapper.updateZknjProUser(zknjProUser);
    }

    /**
     * 批量删除用户服务关联
     * 
     * @param peoIds 需要删除的用户服务关联主键
     * @return 结果
     */
    @Override
    public int deleteZknjProUserByPeoIds(String peoIds)
    {
        return zknjProUserMapper.deleteZknjProUserByPeoIds(Convert.toStrArray(peoIds));
    }

    /**
     * 删除用户服务关联信息
     * 
     * @param peoId 用户服务关联主键
     * @return 结果
     */
    @Override
    public int deleteZknjProUserByPeoId(Long peoId)
    {
        return zknjProUserMapper.deleteZknjProUserByPeoId(peoId);
    }
}
